{include file="public/header" /}
<body>
    <header class="all-header">
        <p class="all-header-item">
            <select class="cs-select" id="shenfen">
                <option>选择省份</option>
                <option value="0">全国</option>
                {volist name="data" id="vo"}
                <option value="{$vo.id}">{$vo.name}</option>
                {/volist}
            </select>
        </p>
        <p class="all-header-item">案源库</p>
    </header>
    <ul class="cs-box">
        {volist name="result" id="vo"}
        <li class="cs-box-item" onclick="anjian({$vo.id},{$vo.status})">
            <div class="cs-box-iinner">
                <h3>{$vo.title}案件</h3>
                <div><span>标的额：</span><span class="color-red">{$vo.money}万元</span></div>
            </div>
            <div class="cs-box-iinner">
                <div class="cs-box-iinner-item">
                    <p>
                        <i class="layui-icon layui-icon-location color-yellow"></i>
                        <span>{$vo.address}</span>
                    </p>
                    <p>管辖法院：{$vo.court}</p>
                </div>
                    {if condition="$vo.status eq 2"}
                    <div class="cs-box-iinner-item">
                        <p class="cs-btn bg-yellow"><a class="color-white" href="javascript:;">投标</a></p>
                    </div>
                    {else /}
                    <div class="cs-box-iinner-item">
                        <p class="cs-btn bg-deepgray">已结束</p>
                    </div>
                     {/if}
            </div>
        </li >
        {/volist}
    </ul>
</body>
<script>
    function anjian(id,status) {
      if(status == 2){
          window.location.href="{:url('case_particular/index')}?id="+id;
      }else{
          window.location.href="{:url('succsess_tip/index')}";
      }
    };

    //按照省份查找
    $("#shenfen").bind('change',function () {
        var val = $(this).val();
       window.location.href="{:url('casere_store/index')}?id="+val;
    })
</script>
</html>